package com.wlanauth.dao.radius.impl;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.wlanauth.dao.common.impl.CommonDaoImpl;
import com.wlanauth.dao.radius.RadAcctDao;
import com.wlanauth.domain.radius.RadAcct;

public class RadAcctDaoImpl extends CommonDaoImpl<RadAcct> implements RadAcctDao{

	@SuppressWarnings("unchecked")
	public List<RadAcct> getAllRadAcctByUsername(String username)
			throws DataAccessException {
		return this.getHibernateTemplate().find("from RadAcct r where r.username=?", new Object[]{username});
	}

	public List<?> findByNamedQueryAndNamedParam(String queryName,
			String[] params, Object[] values) throws DataAccessException {
		return this.getHibernateTemplate().findByNamedQueryAndNamedParam(queryName, params, values);
	}

	
	
}
